package com.todod.model;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author dyl
 * @date 2021-03-12
 */
@TableName("LTCLOUD_ZSGL_DB_DEV.base_md_template")
public class MdTemplate implements Serializable {

	private static final long serialVersionUID = 1L;

	/** 主键 */
	@TableId("mt_pk_id")
	private Long id;
	/** 部门id */
	@TableField("mt_department_id")
	private Long departmentId;
	/** 模板名称 */
	@TableField("mt_name")
	private String name;
	/** 模板类型(1:字典，2：api) */
	@TableField("mt_type")
	private String type;
	/** html数据 */
	@TableField("mt_html_data")
	private String htmlData;
	/** markdwon数据 */
	@TableField("mt_markdown_data")
	private String markdownData;
	/** 默认数据（1：默认） */
	@TableField("mt_default_data")
	private Long defaultData;
	/** 状态（1启用，2禁用） */
	@TableField("mt_state")
	private String state;
	/** 创建时间 */
	@TableField("mt_create_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createTime;
	/** 创建用户id */
	@TableField("mt_create_user_id")
	private Long createUserId;
	/** 修改时间 */
	@TableField("mt_modify_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime modifyTime;
	/** 修改用户名id */
	@TableField("mt_modify_user_id")
	private Long modifyUserId;
	/** 抽取批次号 */
	@TableField("mt_get_batch")
	private String getFlag;
	/** 抽取标志位 */
	@TableField("mt_get_flag")
	private String getBatch;

	@TableField(exist = false) // 表示该属性在数据表里不存在
	private String createUserName; // 创建人姓名

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(Long departmentId) {
		this.departmentId = departmentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getHtmlData() {
		return htmlData;
	}

	public void setHtmlData(String htmlData) {
		this.htmlData = htmlData;
	}

	public String getMarkdownData() {
		return markdownData;
	}

	public void setMarkdownData(String markdownData) {
		this.markdownData = markdownData;
	}

	public Long getDefaultData() {
		return defaultData;
	}

	public void setDefaultData(Long defaultData) {
		this.defaultData = defaultData;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	public Long getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	public LocalDateTime getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(LocalDateTime modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Long getModifyUserId() {
		return modifyUserId;
	}

	public void setModifyUserId(Long modifyUserId) {
		this.modifyUserId = modifyUserId;
	}

	public String getGetFlag() {
		return getFlag;
	}

	public void setGetFlag(String getFlag) {
		this.getFlag = getFlag;
	}

	public String getGetBatch() {
		return getBatch;
	}

	public void setGetBatch(String getBatch) {
		this.getBatch = getBatch;
	}

	public String getCreateUserName() {
		return createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	@Override
	public String toString() {
		return "MdTemplate [id=" + id + ", departmentId=" + departmentId + ", name=" + name + ", type=" + type
				+ ", htmlData=" + htmlData + ", markdownData=" + markdownData + ", defaultData=" + defaultData
				+ ", state=" + state + ", createTime=" + createTime + ", createUserId=" + createUserId + ", modifyTime="
				+ modifyTime + ", modifyUserId=" + modifyUserId + ", getFlag=" + getFlag + ", getBatch=" + getBatch
				+ "]";
	}

}
